<html>
<head><meta charset="utf-8"><title>alternative for term_size · t-compiler/wg-diagnostics · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/index.html">t-compiler/wg-diagnostics</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/alternative.20for.20term_size.html">alternative for term_size</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="184626251"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/alternative%20for%20term_size/near/184626251" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Yuki Okushi <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/alternative.20for.20term_size.html#184626251">(Jan 02 2020 at 03:55)</a>:</h4>
<p>Hi <span class="user-mention" data-user-id="119031">@Esteban Küber</span>, happy new year! You introduced <code>term_size</code> in <a href="https://github.com/rust-lang/rust/issues/63402" target="_blank" title="https://github.com/rust-lang/rust/issues/63402">#63402</a> but it seems unmaintained and uses old dependencies. I forked it and fixed a potential off-by-one error and done some clean-up, then released as <code>termize</code>. It can be an alternative?<br>
termize: <a href="https://github.com/JohnTitor/termize" target="_blank" title="https://github.com/JohnTitor/termize">https://github.com/JohnTitor/termize</a></p>



<a name="184629951"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/alternative%20for%20term_size/near/184629951" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Esteban Küber <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/alternative.20for.20term_size.html#184629951">(Jan 02 2020 at 05:53)</a>:</h4>
<p>That should be fine, there are other crates with similar features we could also use, but I would think some would even prefer to mainline the code into rustc</p>



<a name="184629953"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/alternative%20for%20term_size/near/184629953" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Esteban Küber <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/alternative.20for.20term_size.html#184629953">(Jan 02 2020 at 05:53)</a>:</h4>
<p>But yeah, I'm not attached</p>



<a name="184629958"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/alternative%20for%20term_size/near/184629958" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Esteban Küber <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/alternative.20for.20term_size.html#184629958">(Jan 02 2020 at 05:53)</a>:</h4>
<p>I'm away until next week</p>



<a name="184661874"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/alternative%20for%20term_size/near/184661874" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Esteban Küber <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/alternative.20for.20term_size.html#184661874">(Jan 02 2020 at 16:07)</a>:</h4>
<p><span class="user-mention" data-user-id="217081">@Yuki Okushi</span> ^^</p>



<a name="184718356"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/alternative%20for%20term_size/near/184718356" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Yuki Okushi <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/alternative.20for.20term_size.html#184718356">(Jan 03 2020 at 08:39)</a>:</h4>
<p>okay, we can replace it, or even remove easily enough since it's small code, I think</p>



<a name="184718402"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/alternative%20for%20term_size/near/184718402" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Yuki Okushi <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/alternative.20for.20term_size.html#184718402">(Jan 03 2020 at 08:40)</a>:</h4>
<p>let's work on it when you come back :)</p>



<a name="184993722"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/alternative%20for%20term_size/near/184993722" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Yuki Okushi <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/alternative.20for.20term_size.html#184993722">(Jan 07 2020 at 09:22)</a>:</h4>
<p><span class="user-mention" data-user-id="119031">@Esteban Küber</span> okay, I've prepared two draft branches:</p>
<ul>
<li><a href="https://github.com/JohnTitor/rust/tree/use-termize" target="_blank" title="https://github.com/JohnTitor/rust/tree/use-termize">first</a>: replace term_size with termize</li>
<li><a href="https://github.com/JohnTitor/rust/tree/remove-term-size" target="_blank" title="https://github.com/JohnTitor/rust/tree/remove-term-size">second</a>: remove term_size and port code from termize (documentation or something might be wrong since it's just copied and pasted)</li>
</ul>
<p>which do we prefer?</p>



<a name="185861461"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/alternative%20for%20term_size/near/185861461" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/alternative.20for.20term_size.html#185861461">(Jan 16 2020 at 21:17)</a>:</h4>
<p>I would vote for the first option (if my vote counts :D) since it allows other people to use the fix too.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>